package com.shopping.service;

import com.github.pagehelper.PageInfo;
import com.shopping.common.ServerResponse;
import com.shopping.vo.OrderVo;

import java.util.Map;

public interface IOrderService {
    ServerResponse pay(Long orderNo, Integer userId, String path);
    ServerResponse queryOrderPayStatus(Integer userId,Long orderNo);
    ServerResponse createOrder(Integer userId,Integer shippingId);
    ServerResponse<String> cancel (Integer userId,Long orderNo);
    ServerResponse getOrderCartProduct(Integer userId);
    ServerResponse getOrderDetail(Integer userId , Long orderNo);
    ServerResponse<PageInfo> getOrderList(Integer userId, int pageNum , int pageSize);

    //backend
    ServerResponse<PageInfo> manageSearch(Long orderNo, int pageNum, int pageSize);
    ServerResponse<PageInfo> manageList(int pageNum,int pageSize);


    ServerResponse<OrderVo> manageDetail(Long orderNo);
    ServerResponse<String> manageSendGoods(Long orderNo);
    ServerResponse<String> aliCallback(Map<String, String> params);
}

